<template>
  <div id="app">
    <router-view></router-view>
    <van-loading type="spinner" color="#1989fa" v-if="isShow" id="loading" />
  </div>
</template>

<script>
export default {
  name: "App",
  data() {
    return {};
  },
  components: {},
  computed: {
    isShow() {
      return this.$store.state.Loading.isLoading;
    },
  },
  mounted() {
    console.log(this.$store.state.isLoading);
  },
};
</script>

<style>
#loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
</style>
